package models;

public class Armor extends Item {


	private int defence;

	public Armor(String name, int value, int def) {
		super(name, value);
		this.defence = def;
	}
	
	public String toString() {
		String temp = this.name;
		temp = temp + "\n-Base defence: " + defence;
		for(Effect e : effects) {
			temp = temp + "\n---" + e.getStat() + " " + e.getAmmount();
		}
		return temp;
	}
	
	public int getDefence() {
		return defence;
	}

	public void setDefence(int defence) {
		this.defence = defence;
	}
	
}
